package com.lh.tams.service.system;

import org.springframework.stereotype.Service;

import com.lh.tams.controller.qo.MinLawQo;
import com.lh.tams.dao.system.LawMinDao;
import com.lh.tams.domain.TamsMinLaw;
import com.lh.tams.util.DataGridModel;
import com.lh.tams.util.Page;

/**
 * 小类Service
 * @author liulin
 * @version 2012-05-18
 */
@Service
public class LawMinService {
	private LawMinDao lawMinDao;

	public LawMinDao getLawMinDao() {
		return lawMinDao;
	}

	public void setLawMinDao(LawMinDao lawMinDao) {
		this.lawMinDao = lawMinDao;
	}

	public Page query(DataGridModel dgm,MinLawQo minLawQo){
		return lawMinDao.query(dgm, minLawQo);
	}
	
	public void add(TamsMinLaw tamsMinLaw){
		lawMinDao.add(tamsMinLaw);
	}
	
	public void update(TamsMinLaw tamsMinLaw){
		lawMinDao.update(tamsMinLaw);
	}
	
	public void delete(long[] ids){
		lawMinDao.delete(ids);
	}
}
